package com.kuang.pojo;

import java.util.Date;

public class Logs {
    private Integer id;
    private String ip;
    private Date createTime;
    //    private Date updateTime;
    private String address;   // ip所在地
    private String url;
    private String method;  // 请求方法
    private Long time; // 执行时长  毫秒
    private String params;  // 请求参数
    private String operation;  // 用户操作
    private String returnValue;  // 返回值

    @Override
    public String toString() {
        return "Logs{" +
                "id=" + id +
                ", ip='" + ip + '\'' +
                ", createTime=" + createTime +
                ", address='" + address + '\'' +
                ", url='" + url + '\'' +
                ", method='" + method + '\'' +
                ", time=" + time +
                ", params='" + params + '\'' +
                ", operation='" + operation + '\'' +
                ", returnValue='" + returnValue + '\'' +
                '}';
    }

    public String getReturnValue() {
        return returnValue;
    }

    public void setReturnValue(String returnValue) {
        this.returnValue = returnValue;
    }

    public Logs(Integer id, String ip, Date createTime, String address, String url, String method, Long time, String params, String operation, String returnValue) {
        this.id = id;
        this.ip = ip;
        this.createTime = createTime;
        this.address = address;
        this.url = url;
        this.method = method;
        this.time = time;
        this.params = params;
        this.operation = operation;
        this.returnValue = returnValue;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public Logs(Integer id, String ip, Date createTime, String address, String url, String method, Long time, String params, String operation) {
        this.id = id;
        this.ip = ip;
        this.createTime = createTime;
        this.address = address;
        this.url = url;
        this.method = method;
        this.time = time;
        this.params = params;
        this.operation = operation;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Logs() {
    }


}
